using UnityEngine;
using System.Collections.Generic;
#if UNITY_EDITOR
using UnityEditor;
#endif

public class KeyInfo : InteractiveInfo
{
	[Header("Key")]
	public DoorID door;
	
	public override string[] GetStrings()
	{
		string[] text = new string[2];
		text[0] = "Unlocks Door";
		text[1] = "number 5A";
		return text;
	}
	
	#region Editor
	// Return true id it is to be removed
	public override DrawResult DrawEditor()
	{
		DrawResult result = base.DrawEditor();
		if (result != DrawResult.None)
		{
			return result;
		}

		EditorGUILayout.BeginHorizontal();
		{
			GUILayout.Label("Corresponding Door");
			door = (DoorID)EditorGUILayout.EnumPopup(door);
		}
		EditorGUILayout.EndHorizontal();
		
		return DrawResult.None;
	}
	#endregion
	
	public override InteractiveInfo Clone()
	{
		KeyInfo info = base.CloneInteractive<KeyInfo>();
		info.door = door;
		
		return info;
	}
}
